import Vue from 'vue'
import Router from 'vue-router'
import home from "../components/home";
import Login from "../components/Login";
import Courses from "../components/Courses";
import Cart from "../components/Cart";
import detail from "../components/detail";
import register from "../components/register";
import Course from "../components/Course";

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: home
    },
    {
      path: '/home/',
      name: 'home',
      component: home
    },
    {
      path: '/login/',
      name: 'login',
      component: Login
    },

    {
      path: '/register',
      name: 'register',
      component: register
    },
    // {
    //   path: '/free-course',
    //   name: 'free-course',
    //   component: Courses
    // },

    {
      path: '/free-course',
      name: 'free-course',
      component: Course
    },
    {
      path: '/cart',
      name: 'cart',
      component: Cart
    },
    {
      path: '/detail',
      name: 'detail',
      component: detail
    },

  ]
})
